/* 编译
 * g++ CodingTraining/cpp/getNowTime/time.cpp -o time.exe -I. -DDEBUG -fexec-charset=GBK
 */
/* 输出
 * [Nnnut] CodingTraining/cpp/boolArray/boolArray.cpp:[0015] --- "0:0, 1:0, 2:0, 3:0, 4:0 ."
 * [Nnnut] CodingTraining/cpp/boolArray/boolArray.cpp:[0019] --- "0:1, 1:0, 2:0, 3:0, 4:0 ."
 */
/* 结论
 * bool的默认初始化值为false
 */
#include <iostream>
#include <ctime>
#include "../log/log.h"

int main(int args, const char** argv)
{
    time_t cur_timer;
    tm cur_tm;

    time(&cur_timer);
    localtime_s(&cur_tm, &cur_timer);

    LOG("当前时间：%d-%d-%d-%d_%d_%d", cur_tm.tm_year+1900, cur_tm.tm_mon, cur_tm.tm_mday, cur_tm.tm_hour, cur_tm.tm_min, cur_tm.tm_sec);

    // std::cout   << "tm_sec: "   << cur_tm.tm_sec    << std::endl
    //             << "tm_min: "   << cur_tm.tm_min    << std::endl
    //             << "tm_hour: "  << cur_tm.tm_hour   << std::endl
    //             << "tm_mday: "  << cur_tm.tm_mday   << std::endl
    //             << "tm_mon: "   << cur_tm.tm_mon    << std::endl
    //             << "tm_year: "  << cur_tm.tm_year   << std::endl
    //             << "tm_wday: "  << cur_tm.tm_wday   << std::endl
    //             << "tm_yday: "  << cur_tm.tm_yday   << std::endl
    //             << "tm_isdst: " << cur_tm.tm_isdst  << std::endl;

    return 0;
}